package com.wchat.service;

import com.wchat.dataobject.UserEntity;
import com.wchat.dto.UserLoginDTO;
import com.wchat.dto.UserRegisterDTO;
import com.wchat.repository.UserRepository;
import com.wchat.vo.ForgetPasswordVo;
import com.wchat.vo.UserLoginVo;
import org.omg.CORBA.INTERNAL;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.List;
import java.util.Set;

public interface UserService {

    /** 用户手机号注册**/
    UserRegisterDTO userRegisterByPhone(String phoneNumber, Integer verifyCode,String password,HttpServletRequest request);

    UserLoginDTO userLoginByPhone(UserLoginVo userLoginVo, HttpServletRequest request);

    void forgetPass(ForgetPasswordVo forgetPasswordVo);

    /** 添加关注 **/
    Long addFollow(Integer userIdA,Integer userIdB);
    /** 取消关注**/
    void cancleFollow(Integer userIdA,Integer userIdB);
    /** 获取粉丝列表 **/
    List<UserEntity> followList(Integer userIdA);



}
